package org.example.thread.threadException;

import lombok.SneakyThrows;

/**
 * @Auther:Liu
 * @Testname:DemoC
 * @Date:2025/8/14 15:11
 */
public class DemoC {

    @SneakyThrows
    public  void c(){
        String name = Thread.currentThread().getName();
        System.out.println(name + " is running");
        Thread.yield();
        System.out.println(name + " is stopped");
    }
}
